
<!--    继承layouts/std_master.php模板  -->
@extends('layouts.std_master')

<!-- 重写内容  -->
@section('content')

<h3 align="center">中期检查表</h3>
<form action="/std/mid_write" method="POST" align="center" enctype="multipart/form-data">
	<table align="center" border="1">
		@if($report->project->type <= 5)
		<tr>
			<th>所遇问题</th>
			<td>	
				<textarea rows="10" cols="100" name="所遇问题" placeholder="请填写所遇问题">{{$report->infos->所遇问题 or '请输入所遇问题。。。'}}</textarea>
			</td>
		</tr>
		<tr>
			<th>后期计划</th>
			<td>
				<textarea rows="10" cols="100" name="后期计划" placeholder="请填写后期计划">{{ $report->infos->后期计划 or '请输入后期计划。。。'}}</textarea>
			</td>
		</tr>
		<tr>
			<th>附件：</th>
			<td><input type="file" name="file" >	
				附件：<a href="/argue_book/{{$report->infos->attachmentpath }}/{{$report->infos->attachmentname }}">{{$report->infos->attachmentname or ''}}</a>
			</td>
		</tr>
		@else
		<tr>
			<th>所遇问题</th>
			<td>	
				<textarea rows="10" cols="100" name="所遇问题" disabled placeholder="请填写所遇问题">{{$report->infos->所遇问题 or '请输入所遇问题。。。'}}</textarea>
			</td>
		</tr>
		<tr>
			<th>后期计划</th>
			<td>
				<textarea rows="10" cols="100" name="后期计划" disabled placeholder="请填写后期计划">{{ $report->infos->后期计划 or '请输入后期计划。。。'}}</textarea>
			</td>
		</tr>
		<tr>
			<th>附件：</th>
			<td><input type="file" name="file"  disabled>
	附件：<a href="/argue_book/{{$report->infos->attachmentpath }}/{{$report->infos->attachmentname }}">{{$report->infos->attachmentname or ''}}</a>
			</td>
		</tr>
		@endif


		<tr>
			<th>教师评语</th>
			<td>
				<textarea rows="10" cols="100" disabled name="教师评语" placeholder="等待教师审核">{{$report->infos->教师评语 or '等待审核中'}}</textarea>
			</td>
		</tr>
	</table><br>
	<input type="hidden" name="rid" value="{{$report->rid or ''}}" >
	<input type="hidden" name="report_type" value="{{$report->report_type }}" >
	@if($report->project->type==4||empty($report))
		<button type="submit" name="submit" >提交报告</button>
	@elseif($report->project->type==5)
		<button type="submit"  name="submit" >修改报告</button>
	@elseif($report->project->type>5)
		<button type="submit" disabled name="submit" >中期检查表已完成</button><font color="red">老师已审核</font>
	@endif
</form>


@endsection